//
//  SliderViewController.m
//  SpecialEffectsProject
//
//  Created by 蓓蕾 on 2021/11/4.
//

#import "SliderViewController.h"
#import <MapKit/MapKit.h>
#import "SlideScrollView.h"

@interface SliderViewController ()
@property (nonatomic, strong) MKMapView *mapView;
@property (nonatomic, strong) SlideScrollView *slideView;

@end

@implementation SliderViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.mapView = [[MKMapView alloc] initWithFrame:self.view.bounds];
    MKCoordinateSpan span = MKCoordinateSpanMake(0.021251, 0.016093);
    CLLocationCoordinate2D location = CLLocationCoordinate2DMake(30.221034, 120.183252);
    [self.mapView setRegion:MKCoordinateRegionMake(location, span) animated:YES];
    [self.view addSubview:self.mapView];
    UIToolbar *stautsBar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, STATUS_BAR_HEIGHT)];
    [self.view addSubview:stautsBar];
    
    self.slideView = [[SlideScrollView alloc] initWithFrame:self.view.bounds];
    [self.view addSubview:self.slideView];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
